package com.pointstar.dp.modules.project.util;

import java.util.Map;

/**
 * 通用工具类
 *
 * @author 朱科睿
 */
public class CommonUtil {

    private CommonUtil() {
        throw new IllegalArgumentException("CommonUtil Class");
    }

    public static Map<String, Object> setTime(Map<String, Object> params) {
        String startDate = "startDate";
        String endDate = "endDate";
        if (params.get(startDate) != null && params.get(endDate) != null) {
            params.put(startDate, params.get(startDate) + " 00:00:00");
            params.put(endDate, params.get(endDate) + " 23:59:59");
        }
        return params;
    }
}
